package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.Permission;
import com.itheima.health.pojo.Role;

import java.util.List;

/**
 * @Author:ZZZ
 * @Date: 2021/1/19 10:42
 * @Version 1.0
 */
public interface PermissionDao {
    void add(Permission permission);

    Integer findt_role_permissionById(int id);

    void deleteById(int id);

    Page<Permission> findByCondition(String queryString);

    void update(Permission permission);

    Permission findById(int id);

    /**
     * 查询所有权限
     * @return
     */
    List<Permission> findPermissionAll();

}
